let fs = require("fs");



for(let i = 1 ;i<=5;i++){

let fd = fs.openSync(`${i}号文件`,'w');

fs.writeSync(fd,"我的yanyan",function(err){
    if(err){
        throw err ;
    }
});

fs.closeSync(fd)

}